package com.wufeng.test;
 
public class Demo {
    public static void main(String[] args) {
        Object handler = handler();
        System.out.println(handler.toString());
    }
 
    public static Object handler() {
        try {
            System.out.println("try：内（前）");
            System.out.println("try：内（异常）" + 5 / 0);
            System.out.println("try：内（后）");
 
            return "try：返回";
        } catch (Exception e) {
            System.out.println("catch：内（前）");
//            System.out.println("catch：内（异常）" + 5 / 0);
//            System.out.println("catch：内（后）");
//            return "catch：返回";
        } finally {
            System.out.println("finally：内");
//            return "finally：返回";
        }
        System.out.println("最后");
        return "最后（返回）";
    }
}